package com.zzy.test;

import weibo4j.Users;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.User;
import weibo4j.model.WeiboException;

/**
 * 根据用户名得到用户所有信息
 * @author eason
 *
 */
public class ShowUserByName {

	public static void main(String[] args) {
//		String access_token = "2.008iGhsCgrdWgDebec65d6c60B_qJ8";//笔尖少侠
		String access_token = "2.00RxiAbBgrdWgDb292c14f92eLO7CB";//零13
		Users users = new Users();
		users.client.setToken(access_token);
		try {
			User user = users.showUserByScreenName("零13");
			Log.logInfo(user.toString());
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}

}
